﻿using System.ComponentModel.DataAnnotations;
using Utils;

namespace DataModels.Dto.Community
{
    public class GetCommunityActivitiesResponse
    {
        public Guid UUID { get; set; } 

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 首图
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 活动地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 活动地点经度
        /// </summary>
        public decimal Longitude { get; set; }

        /// <summary>
        /// 活动地点纬度
        /// </summary>
        public decimal Latitude { get; set; }

        /// <summary>
        /// 咨询人姓名
        /// </summary>
        public string ContactPerson { get; set; }

        /// <summary>
        /// 咨询电话号码
        /// </summary>
        public string ContactPhone { get; set; }

        /// <summary>
        /// 参与人数
        /// </summary>
        public int NumberOfPeople { get; set; }

    }

    /// <summary>
    /// 参加活动
    /// </summary>
    public class CreateCommunityActivityParticipantInfo
    {
        [GeneralRequired]
        public Guid CommunityActivitiesUUID { get; set; }

        /// <summary>
        /// 参加人信息
        /// </summary>
        [GeneralRequired]
        public List<string> PersonnelInfo { get; set; }
    }

    public class GetCommunityActivitiesDetailsInfo : PageRequest
    {
        [GeneralRequired]
        public Guid CommunityActivitiesId { get; set; }
    }
    public class GetCommunityActivityCommentDto
    {
        public Guid CommunityActivityCommentUUID { get; set; }

        public Guid? ParentCommentUUID { get; set; }
        public string AvatarUrl { get; set; }
        public string UserName { get; set; }
        public DateTime CreateTime { get; set; }
        public string Content { get; set; }

        public List<string> Images { get; set; }
        public List<GetCommunityActivityCommentDto> Children { get; set; }
    }

    public class CreateCommunityActivityCommentInfo
    {
        [GeneralRequired]
        public Guid CommunityActivitiesId { get; set; }

        public Guid? ParentCommentUUID { get;set; }

        [Required]
        public string Comment { get; set; }

        public List<string>? Urls { get; set; } = [];
    }

    public class ContactPropertyInfo
    {
        /// <summary>
        /// Desc:项目ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string ProjectUUID { get; set; }

        /// <summary>
        /// Desc:楼栋ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string BuildingUUID { get; set; }

        /// <summary>
        /// Desc:类型： 联系方式 / 二维码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Type { get; set; }
    }

    public class CustomerInfo
    {
        /// <summary>
        /// Desc:项目ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string ProjectUUID { get; set; }

        /// <summary>
        /// Desc:楼栋ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string BuildingUUID { get; set; }

        /// <summary>
        /// Desc:单元号ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string UnitUUID { get; set; }

    }


}
